package org.example.common;

import com.ruoyi.system.domain.SysPost;
import com.ruoyi.system.service.ISysPostService;
import org.example.warehouse.domain.Warehouse;
import org.example.warehouse.service.IWarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysDict")
public class SysDictService {

    @Autowired
    private IWarehouseService warehouseService;

    @Autowired
    private ISysPostService postService;
    public List<Warehouse> getWarehouseAll(Warehouse warehouse){
        List<Warehouse> warehouses = warehouseService.selectWarehouseList(warehouse);
        return warehouses;
    }


    public List<SysPost> getPosts(){
       return postService.selectPostAll();
    }
}
